package io.pumelo.wxjump.anserine;

import java.util.regex.Matcher;
import java.util.regex.Pattern;

/**
 * Created by dw on 2018/01/19
 */
public class Testparse {
    public static void main(String[] args) {
        String con =

                "阿什顿发\"http://www.baidu.com/link?url=zjLDqLeUCw2tVP3XAG1OfpeME-8vsX1EjuMqbJj_J3hGE1FhrsgvrRtq7sGqIo1iR2zIxqyOC3EmL4EiQZHT2uWdwo8zGEJmiqBO7Xsg1ty&amp;wd=&amp;eqid=9ffa8d660002cc78000000035a620a02\"阿斯顿发生的";

        Pattern
                regBaidu = Pattern.compile("\"http://www\\.baidu\\.com/link\\?url=(.*)\"");
        Matcher mt = regBaidu.matcher(con);
        if (mt.find()) {
            System.out.println(mt.group());
        }
    }
}
